package com.common.base.tools.utils.file

/**
 * 三疯
 * *************************
 * https://juejin.cn/post/7306815404562137128
 * *************************
 */
enum class StorageEnum(var code:Int,var path:String) {
    //"data/app的专属目录","getFileDIr()"
    STORAGE_DATA_FILES(1,"/data/data/package/name/files"),
    //"app的专属缓存目录","getCacheDir()"
    STORAGE_DATA_CACHE(2,"/data/data/package/name/cache"),

    //"sdcard/app的专属目录","getExternalFilesDir()"
    STORAGE_SDCARD_ANDROID_FILES(3,"/sdcard/Android/packagename/files"),
    //"sdcard/app的专属缓存目录","getExternalCacheDir()"
    STORAGE_SDCARD_ANDROID_CACHE(4,"/sdcard/Android/packagename/cache"),

    //共有目录不能直接访问
    //"所有因公共享访问","getExternalStorageDirectory()"
    STORAGE_SDCARD(5,"/sdcard"),
    //"应用卸载后菜鸟仓数据不会被删除","getExternalStoragePublicDirectory()"
    STORAGE_SDCARD_MEIDA(6,"DCIM、Picture、Music等共享媒体目录"),
    //"应用卸载后菜鸟仓数据不会被删除","getRootDirectory()"
    STORAGE_SYSTEM(7,"/system");
}